package com.cwj.mansysback.entity;

import java.math.BigDecimal;

public class People {

    private String name;

//    oracle 中 的number 类型均对于BigDecmial
    private Integer age;

    public People() {
    }

    public People(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getName() {
        return name;
    }



    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", age=" + age +
                "}\n";
    }

    public static void main(String[] args) throws NoSuchFieldException {
        System.out.println(People.class.getDeclaredField("name"));
    }
}
